package com.ouc.controller;

import com.ouc.service.HelloWorldService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @NAME: controller
 * @USER: yyi
 * @YEAR: 2022-07-23 17:47
 * @DESCRIPTION:
 */
@Controller
public class HelloWorldController {

    @Autowired
    private HelloWorldService helloWorldService;

    @RequestMapping("/helloWorld")
    public String index() {
        System.out.println(helloWorldService.test());
        return "mvc";

    }

}
